﻿
@{
    ViewBag.Title = "统计代码设置";
    ViewBag.SCodeCss = "active";
}

<ul class="breadcrumb">
    <li>系统管理<span class="divider">/</span></li>
    <li class="active">@ViewBag.Title</li>
</ul>
<div class="container-fluid">
    <div class="row-fluid">

        <div class="row-fluid">

            <div class="btn-toolbar">
                <button class="btn btn-primary" onclick="save()"><i class="fa fa-save"></i> Save</button>
                <div class="btn-group">
                </div>
            </div>
            <div>
                <label>统计代码</label>
                <textarea id="statscode" name="statscode" style="width:400px;height:300px;">@ViewBag.Value</textarea>
            </div>
        </div>


        @Html.Partial("_footer")

    </div>
</div>
<script>
    //保存
    function save() {
        var statscode = $("#statscode").val();
        if (statscode == "") {
            AlertDialog("不能为空！");
            return;
        }

        var data = [{ 'name': 'statscode', 'value': statscode }];
        AjaxPost('/Admin/StatsCode/Save', data, function (mess) {
            AlertDialog(mess.msg);
        });
    }
</script>
